package Practice.Practice_02.Basketbal;

public class Basketball {
    private int num;
    private String name;
    private String sex;

    public int getNum(){
        return num;
    }

    public void setNum(int num){
        this.num = num;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getSex(){
        return sex;
    }

    public void setSex(String sex){
        this.sex = sex;
    }

    public Basketball(){

    }
    public Basketball(int num, String name, String sex){
        this.num = num;
        this.name = name;
        this.sex = sex;
    }
    public String play(){
        return "打篮球。";
    }
    public void print(int num, String name, String sex){
        System.out.println(num + "个名叫" + name + "的" + sex + "人在" + play());
    }
}
